import axios from "axios";

/**
 * 分页查询子字典数据
 */
export function getPageChildDictData(params: any) {
    return axios.get("/sys/dict/child/data/list/page", {
        params: params
    });
}

/**
 * 添加或更新子字典数据
 * @param data
 */
export function saveOrUpdateChildDict(data: any) {
    return axios.post("/sys/dict/child/data/saveOrUpdate/manual", data);
}

/**
 * 根据id删除子字典数据
 * @param params
 */
export function deleteChildDictDataById(params: any) {
    return axios.delete("/sys/dict/child/data/delete/id", {
        params: params
    });
}
